ul>li:first-child{ color: red;}
ul>li:last-child{ color: blue;}

ol>li:nth-child(2n+1){ background: red;}
ol>li:nth-child(2n){ background: blue;}
ol>li:nth-child(odd){ color: black;}
ol>li:nth-child(even){ color: white;}
ol>li:nth-child(3){ border: solid 1px yellow;}

ol>li:nth-last-child(2n+1){ background: red;}
ol>li:nth-last-child(2n){ background: blue;}
ol>li:nth-last-child(odd){ color: black;}
ol>li:nth-last-child(even){ color: white;}
ol>li:nth-last-child(3){ border: solid 1px yellow;}
